using System;

namespace Camalon.Drawing.Samples.CSharp
{
	/// <summary>
	/// Summary description for SimpleTestShape.
	/// </summary>
	public class OutlineShape:Camalon.Drawing.ShapeContainer
    {
		private Camalon.Drawing.ShapePen shapePen;
		private Camalon.Drawing.Outline outline;
		private Camalon.Drawing.LinearGradientFill linearGradientFill;
		private Camalon.Drawing.Shapes.RectangleShape rectangleShapeOutlined;
		private Camalon.Drawing.LinearGradientFill shadePenFilll;
		private Camalon.Drawing.Shade shade;
	
		private void InitializeComponent()
		{
            this.shapePen = new Camalon.Drawing.ShapePen();
            this.shadePenFilll = new Camalon.Drawing.LinearGradientFill();
            this.linearGradientFill = new Camalon.Drawing.LinearGradientFill();
            this.shade = new Camalon.Drawing.Shade();
            this.outline = new Camalon.Drawing.Outline();
            this.rectangleShapeOutlined = new Camalon.Drawing.Shapes.RectangleShape();
            ((System.ComponentModel.ISupportInitialize)(this)).BeginInit();
            // 
            // shapePen
            // 
            this.shapePen.Color = new Camalon.Drawing.TransparentColor(System.Drawing.Color.Empty);
            this.shapePen.Fill = this.shadePenFilll;
            this.shapePen.ForegroundPen = false;
            this.shapePen.Width = 5F;
            // 
            // shadePenFilll
            // 
            this.shadePenFilll.GammaCorrection = true;
            this.shadePenFilll.InterpolationColors = new Camalon.Drawing.CompoundColor[] {
        new Camalon.Drawing.CompoundColor(System.Drawing.Color.FromArgb(((int)(((byte)(161)))), ((int)(((byte)(108)))), ((int)(((byte)(63)))))),
        new Camalon.Drawing.CompoundColor(System.Drawing.Color.FromArgb(((int)(((byte)(102)))), ((int)(((byte)(102)))), ((int)(((byte)(102))))), 1F)};
            // 
            // linearGradientFill
            // 
            this.linearGradientFill.GammaCorrection = true;
            this.linearGradientFill.InterpolationColors = new Camalon.Drawing.CompoundColor[] {
        new Camalon.Drawing.CompoundColor(System.Drawing.Color.SandyBrown),
        new Camalon.Drawing.CompoundColor(System.Drawing.Color.Black, 1F)};
            // 
            // shade
            // 
            this.shade.Pen = this.shapePen;
            this.shade.Repeat = 6;
            // 
            // outline
            // 
            this.outline.Flatness = 0.1F;
            this.outline.LineJoin = System.Drawing.Drawing2D.LineJoin.MiterClipped;
            this.outline.Width = 40F;
            // 
            // rectangleShapeOutlined
            // 
            this.rectangleShapeOutlined.BottomRight = new Camalon.Drawing.Corner(0.2137931F, 0.48F);
            this.rectangleShapeOutlined.Fill = this.linearGradientFill;
            this.rectangleShapeOutlined.FillMode = System.Drawing.Drawing2D.FillMode.Winding;
            this.rectangleShapeOutlined.Outline = this.outline;
            this.rectangleShapeOutlined.Pen = this.shapePen;
            this.rectangleShapeOutlined.Position = new System.Drawing.Point(190, 120);
            this.rectangleShapeOutlined.Shade = this.shade;
            this.rectangleShapeOutlined.Size = new System.Drawing.Size(300, 230);
            this.rectangleShapeOutlined.TopLeft = new Camalon.Drawing.Corner(0.3793103F, 0.6F);
            this.rectangleShapeOutlined.TopRight = new Camalon.Drawing.Corner(1.05233E-07F, 0F);
            // 
            // SimpleTestShape
            // 
            this.Shapes.AddRange(new Camalon.Drawing.Shape[] {
            this.rectangleShapeOutlined});
            this.Size = new System.Drawing.Size(930, 560);
            ((System.ComponentModel.ISupportInitialize)(this)).EndInit();

		}
	
		public OutlineShape()
		{
			//
			// TODO: Add constructor logic here
			//
		}
	}
}
